package org.abettor.tanqiu.gameloop.object;

import com.badlogic.gdx.math.Vector2;

/**
 * 地图的部分
 * @author jzh
 *
 */
public abstract class BallMapPart {
	protected boolean show;//是否是隐形的
	//protected Vector2 position;
	public abstract Vector2 getBegin();//获得球的起始坐标
	public abstract Vector2 getEnd();//获得球的的终点坐标
	/**
	 * 下一个步长后所处的坐标
	 * @param start
	 * @param step
	 * @return 当返回null时，即为改点已经出了范围
	 */
	public abstract Vector2 nextStep(Vector2 start,int step);
//	public Vector2 getPosition() {
//		return position;
//	}
//
//	public void setPosition(Vector2 position) {
//		this.position = position;
//	}
	
	public boolean isShow() {
		return show;
	}

	public void setShow(boolean show) {
		this.show = show;
	}
}
